package com.pi.base.dto.result.respcode.smart;

import com.pi.base.dto.result.respcode.ServerResp;

public enum DcResp implements ServerResp{
  RESP_DEVICE_CODE_EMPTY(2700101, "DC_DEVICE.DEVICE_CODE_EMPTY", "设备编号为空"),
  RESP_DEVICE_CODE_LENGTH_ILLGAL(2700102, "DC_DEVICE.DEVICE_CODE_LENGTH_ILLGAL", "设备编号长度过长"),
  RESP_DEVICE_NAME_EMPTY(2700103, "DC_DEVICE.DEVICE_NAME_EMPTY", "设备名称为空"),
  RESP_DEVICE_LENGTH_ILLGA(2700104, "DC_DEVICE.DEVICE_LENGTH_ILLGAL", "设备名称长度过长"),
  RESP_DEVICE_USER_NOT_FOUND(2700105, "DC_DEVICE.DEVICE_USER_NOT_FOUND", "设备用户不存在"),
  RESP_DEVICE_WAS_REGISTERED(2700106, "DC_DEVICE.DEVICE_WAS_REGISTERED", "设备已被他人注册"),
  RESP_SHARE_SOURCE_EMPTY(2700107, "DC_DEVICE.SHARE_SOURCE_EMPTY", "未经分享不允许查看他人数据"),
  RESP_DEVICE_ID_EMPTY(2700108, "DC_DEVICE.DEVICE_ID_EMPTY", "设备序列号不能为空"),
  RESP_WIFI_SSID_EMPTY(2700109, "DC_DEVICE.WIFI_SSID_EMPTY", "wifi名称为空"),
  RESP_WIFI_PASS_EMPTY(2700110, "DC_DEVICE.WIFI_PASS_EMPTY", "wifi密码为空"),
  RESP_PRIVILEGE_NOT_FOUND(2700111, "DC_DEVICE.PRIVILEGE_NOT_FOUND", "用户无此设备的权限"),
  ;
  private int errorCode;
  private String tag;
  private String desc;
  private DcResp(int errorCode, String tag, String desc) {
    this.errorCode = errorCode;
    this.tag = tag;
    this.desc = desc;
  }
  public int getErrorCode() {
    return errorCode;
  }
  public String getTag() {
    return tag;
  }
  public String getDesc() {
    return desc;
  }
}
